import request from '@/api/request'

function brandListAll(data) {
    return request({
        url: '/api/leju/admin/brand/listAll',
        method: 'get',
        data
    })
}

function brandList(data) {
    return request({
        url: '/api/leju/admin/brand/list',
        method: 'get',
        data
    })
}

function brandDetail(data) {
    return request({
        url: '/api/leju/admin/brand/detail',
        method: 'get',
        data
    })
}

function brandSaveOrUpdate(data) {
    return request({
        url: "/api/leju/admin/brand/saveOrUpdate",
        method: 'post',
        data
    })
}

function brandDel(data) {
    return request({
        url: '/api/leju/admin/brand/del',
        method: 'get',
        data
    })
}

export default {
    brandListAll,
    brandList,
    brandDetail,
    brandSaveOrUpdate,
    brandDel
}